<div class="tab_cont2 security">
<?php if($model->zm_check_status==1):?>
            <form action="/home/user/againEmail" method="post" name="">
        	<div class="success">
                	您还没激活您的邮箱：<strong class="c_f60 fs_14"><?php echo $model->zm_email; ?></strong>，<a href="<?php echo getPostOffice($model->zm_email);?>" title="" target="_blank">请前往完成激活</a>
            </div>
            <input type="hidden" name="Member[zm_email]" value="<?php echo $model->zm_email; ?>" />
            <input type="hidden" name="Member[zm_name]" value="<?php echo $model->zm_name; ?>" />
            <div class="check">
                <p class="btn_link"><button type="submit" name="" class="mem_btn mem_btn05">重发验证邮件</button></p>
            </div>
        	</form>        
        	<?php endif;?>
            <?php if($model->zm_check_status==2 || $model->zm_check_status==4):?>
                <p class="c_666 remind"><span class="ico ico_tip"></span>修改邮箱需要验证码，点击发送将发送验证码到您当前使用的邮箱。</p>
				    <ul class="form_list">
                        <li><span class="tit">您的注册邮箱：</span><?php echo CHtml::textField("Member[zm_email]",$model->zm_email,array('class'=>'t_ipt ipt_bg','value'=>Yii::app()->user->email,'maxlength'=>'32','disabled'=>'true')); ?><span id="emails"></span></li>
                        <li><span class="tit"></span>
							<?php echo CHtml::ajaxSubmitButton('发送验证码',
                            CHtml::normalizeUrl(
                            array('/ajax/sendEmailCaptcha')
                            ),
							array('success'=>'function(result){
								if(result==1){
									alert("验证码发送成功，请登录您的邮箱获取。");
								}else if(result==-1){
									alert("非法请求。");
								}else{
									alert("验证码发送失败，请重试，或联系管理员。");
								}
							}'
							),
                            array('class'=>'mem_btn mem_btn05'));?>
                        </li>
                    </ul>
                <div class="change_done d_n">
                	<p class="fw_b fs_14"><span class="ico_big ico_done"></span>激活邮件已经成功发送到您的新邮箱，请查收</p>
                    <p class="mt10">请在24小时内前去激活，否则更改失效，现在去 <a class="c_06c fw_b" href="javascript:" title="">lhqms1@163.com</a> 激活</p>
                </div>
                
            	<?php 
                    $form = $this->beginWidget('CActiveForm', 
                    array(
                    'id'=>'email-form',
                    'enableAjaxValidation'=>false,
                    'enableClientValidation'=>true,
                    'clientOptions'=>array('validateOnSubmit'=>true),
                    'action'=>'/member/info/changeemail',
                )); ?>
                <?php echo $form->hiddenField($model,'zm_id',array('value'=>$model->zm_id)); ?>
                <p class="c_666 remind"><span class="ico ico_tip"></span>更改邮箱后系统会向您的新邮箱发送激活邮件，请在24小时内前激活。</p>   
                    <ul class="form_list">
                    <?php if($model->zm_check_status==2 || $model->zm_check_status==4):?>
                        <li><span class="tit">验证码：</span>
                        <?php echo $form->textField($model,'captcha',array('class'=>'t_ipt code','style'=>'width:80px','value'=>'','maxlength'=>'10')); ?><span id="captcha"></span>
                        <?php echo $form->error($model,'captcha','',true,true,'span'); ?>
                        </li>
                    <?php endif;?>
                        <li>
                            <span class="tit">请输入新的电子邮箱：</span>
                            <?php echo $form->textField($model,'zm_email',array('class'=>'t_ipt ipt_bg','value'=>'','maxlength'=>'32')); ?>
                            <?php echo $form->error($model,'zm_email','',true,true,'span'); ?>
                        </li>
                        <li><span class="tit"></span><input class="mem_btn mem_btn05" type="submit" name="" value="确认修改" /></li>
                    </ul>
                <div class="change_done d_n">
                	<p class="fw_b fs_14"><span class="ico_big ico_done"></span>激活邮件已经成功发送到您的新邮箱，请查收</p>
                    <p class="mt10">请在24小时内前去激活，否则更改失效，现在去 <a class="c_06c fw_b" href="javascript:" title="">lhqms1@163.com</a> 激活</p>
                </div>
                <?php $this->endWidget(); ?>
         	</div>
         	<?php endif;?>
         	</div>